﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AgingBoxwithNoRefresh.aspx.cs" Inherits="ProductAging_ManuAging_AgingBoxwithNoRefresh" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <script type="text/javascript">
        function fun1() {
            var T1 = setInterval(fun2, 1000);
        }
        function fun3() {
            var T2 = setInterval(fun4, 1000);
        }
        function fun2() {
            if (t >= 0) {
                document.getElementById("Label2").innerHTML = parseInt(t / 60) + ":" + t % 60;
                t--;
            }
            else {                
                document.all.Button1.disabled = false;
                document.getElementById("Button1").style.backgroundColor = "red";
                clearInterval(T1);
            }
        }
        function fun4() {
            if (t >= 0) {
                document.getElementById("Label2").innerHTML = parseInt(t / 3600) + ":" + parseInt(t % 3600 / 60) + ":" + t % 60;
                t--;
            }
            else {
                document.all.Button2.disabled = false;
                document.getElementById("Button2").style.backgroundColor = "red";
                clearInterval(T2);
            }
        }
        </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div style="width: 240px; text-align:center; height: 280px;">
        <p>
            <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="X-Large"></asp:Label>
        </p>
        <p>
            倒计时：<asp:Label ID="Label2" runat="server" Font-Size="X-Large">00:00</asp:Label></p>
        <p>
            恒温提示：<asp:Button ID="Button1" runat="server" Enabled="False" 
                onclick="Button1_Click" Text="确  认" />
        </p>
        <p>
            巡查确认：<asp:Button ID="Button4" runat="server" Enabled="False"  
                onclick="Button4_Click" Text="确  认" />
        </p>
        <p>
            时效结束：<asp:Button ID="Button2" runat="server" Enabled="False" 
                onclick="Button2_Click" Text="确  认" />
        </p>
        <p>
                    <asp:LinkButton ID="LinkButton1" runat="server" Enabled="False" 
                        onclick="LinkButton1_Click">查看此批次详细</asp:LinkButton>
                </p>
        <p>
            <asp:Timer ID="Timer1" runat="server" Enabled="False" ontick="Timer1_Tick">
            </asp:Timer>
        </p>
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
